package com.atguigu.school.commons;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

@ApiModel(value = "登录成功后返回的用户信息")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
@ToString
@Getter
@Setter
public class UserInfo<T> {

    @ApiModelProperty(value = "用户类型",notes = "1 管理员； 2 学生； 3 教师；")
    private Integer userType;

    @ApiModelProperty(value = "具体登录的用户",notes = "管理员、学生或老师")
    private T user;

}
